home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / TAWUG / TAWUG Disk No. 53 (SHK) / TAWUG53.shk / AW.PRNTR.CNTRL (.txt) < prev    next >
AppleWorks Document  |  1987-06-29  |  8KB  |  194 lines

  1. O=====|====|====|====|====|====|====|====|====|====|====|====|====|====|====|===
  2. The following is from...
  3. Dr. Frank Lowney, Assistant Dean
  4. School of Education
  5. Georgia College
  6. Milledgeville, Georgia  31061
  7. :...please direct all comments, quips, queries, aphorisms, <
  8. :dewdrops of wisdom and snotty remarks to him at the above 
  9. address.
  10. 'Improved Control of the ImageWriter II  
  11. Printer From Within AppleWorks
  12. (Here's how to modify AppleWorks so that ,
  13. *you can control an ImageWriter II printer $
  14. nearly as well as AppleWriter can.
  15. +As you may or may not know, AppleWriter is (
  16. &the hacker/power user's favorite word %
  17. #processor.  This is because it has $
  18. "features unavailable in many word (
  19. &processors and a few features that no #
  20. other word processor possesses.  
  21. (For example, it has its own programming -
  22. +language built right in so that just about &
  23. $anything can be automated.  Another &
  24. $exemplary feature is its ability to -
  25. +directly control printers and other output *
  26. (devices through its ability to send the $
  27. "special signals only printers can +
  28. )understand, things like escape sequences 
  29. and control characters.
  30. $The ImageWriter II, like many other ,
  31. *printers, is controlled largely by escape '
  32. %sequences.  There's a table of these +
  33. )commands in the back of your ImageWriter "
  34. II Owner's Manual, check it out.
  35. )So if you were using AppleWriter and had *
  36. (an ImageWriter II printer and wanted to +
  37. )put a MouseText Open Apple in the middle ,
  38. *of a sentence, one would simply imbed the (
  39. &command, "Escape-&", into the text to +
  40. )enable the MouseText characters and then +
  41. )follow it with an "A".  The "A" would be -
  42. +printed as a cute little Open Apple.  Then ,
  43. *you would imbed the command "Escape-$" to )
  44. 'return to the use of the regular ASCII (
  45. &characters.  And so on and so on, you ,
  46. *could have virtually full control of your 
  47. printer.
  48. *But you can't stand the idea of forsaking *
  49. (AppleWorks?  I don't blame you.  Here's -
  50. +how you can easily get a good deal of this 
  51. power into AppleWorks.  
  52. 'You'll need a good block editor or ZAP +
  53. )program as they call it.  There are many +
  54. )fine ones on the market.  There's one on *
  55. (Copy II+; there's one in Bag of Tricks; +
  56. )there's one in Beagle Bros. ProByter and &
  57. $there's one in Glen Bredon's ProSel '
  58. %desktop manager package called Block (
  59. &Warden.  I use Block Warden because I '
  60. %think its the best one around.  Take *
  61. (whatever time is required to understand ,
  62. *what a block editor is and how to use the -
  63. +one you have.  The documentation should do *
  64. (all of this for you if you'll read it.  +
  65. )Don't be like me and read the directions 
  66. only when all else fails.
  67. %First, a warning.  NEVER NEVER NEVER ,
  68. *modify an original disk.  In fact, I will -
  69. +go so far as to suggest here that you make +
  70. )a backup copy of AppleWorks specifically *
  71. (for this project.  That way if you mess (
  72. something up, there'll be little lost.
  73. )Use your block editor to search the side ,
  74. *of the disk that has the file, SEG.PR, on +
  75. it.  Search for the 
  76. hexadecimal
  77.  string:
  78.           02 1B 21 02 1B 22
  79. then change it to:
  80.           01 1B 21 02 1B 66
  81. *What this does is modify that part of the '
  82. %SEG.PR file that stores the commands ,
  83. *associated with the ImageWriter and Apple -
  84. +DMP printers (they use the same commands), &
  85. $specifically the Boldface Begin and *
  86. (Boldface End commands.  Recall that the ,
  87. *Control-B keystroke in AppleWorks toggles +
  88. )boldface printing on and off.  Normally, ,
  89. *the first Control-B keystroke sequence in ,
  90. *an AWP paragraph causes an Escape-! to be ,
  91. *sent to the ImageWriter in order to begin +
  92. )boldface printing and a second Control-B &
  93. $sends an Escape -" to stop boldface +
  94. )printing.  With these modifications, the +
  95. )first Control-B sends only an Escape and )
  96. the second Control-B sends an Escape-f.
  97. +Now, if you type Control-B, you'll see the +
  98. )same ^ as always 
  99.  it will represent -
  100. +and, more importantly send to the printer, ,
  101. *a solitary Escape.  Following this escape )
  102. 'with the appropriate keystroke(s) will *
  103. (cause the printer to respond to it as a ,
  104. *printer command, not as a character to be -
  105. +printed.  A second Control-B will embed an -
  106. +Escape-f which is a forward linefeed and a ,
  107. *good, innocuous way to make sure that the ,
  108. *next Control-B will be a solitary Escape, (
  109. &one that really 
  110. does something
  111. .  In +
  112. )appearance, our example from paragraph 5 
  113. would look like this:
  114. $     Once upon a time, there was an -
  115. +enchanted ^&A^^$^ that        was very red 
  116. and delicious looking.
  117. +To illustrate how this technique works and *
  118. (to facilitate your experimentation, the ,
  119. following files are included on this disk:
  120. Escape.Tables
  121.  is a convenient list of -
  122. +those ImageWriter capabilities that can be -
  123. +tapped with Escape sequences. Included are (
  124. &commands that affect Type Size, Print -
  125. +Formatting (including the use of MouseText (
  126. &and Alternate Character Sets), Colors (
  127. &(with a special multi-color ribbon of '
  128. %course), Lines Per Inch, Downloading '
  129. %Characters, and Bit Image Graphics!  &
  130. $There's a lot to explore here, I've "
  131.  suggested only the more obvious 
  132. possibilities to you here.
  133. MouseText.Chart
  134.  is another conveniently (
  135. &organized list.  This one shows which #
  136. !letters turn into what MouseText '
  137. %character.  It's also a good, simple -
  138. +example of how to use the Escape character %
  139. #to invoke both ASCII and MouseText -
  140. +characters side by side.  I've also played &
  141. $around with various typesizes using +
  142. )conventional AppleWorks printer commands $
  143. "in conjunction with these special 
  144. procedures.
  145. MT.Designs
  146.  is a more elaborate example &
  147. $of MouseText Graphics.  If this one +
  148. doesn't get you going, then nothing will.
  149. +Of course, these examples won't illustrate *
  150. (much of anything unless you've modified 
  151. the SEG.PR file, so go to it.
  152. One final, teasing, suggestion:  
  153. +Imagine this technique in conjunction with -
  154. +a Macro program and/or downloaded graphics ,
  155. *or alternative character sets such as are ,
  156. available through the likes of PowerPrint.
  157. *Now, a final plea.  Does anyone out there -
  158. +know how to get 2 sets of ImageWriter code (
  159. &in the SEG.PR file, one in its normal *
  160. (position and one in the place of one of +
  161. )the other printers, so that you can have %
  162. #an unmodified version as well as a +
  163. )modified one.  Note that ImageWriter and $
  164. Apple DMP all use the same code.  
  165. )The reason for wanting to have 2 sets of )
  166. 'ImageWriter code, one modified and the *
  167. (other stock, is this:  If someone sends -
  168. +you a file that has been formatted with an -
  169. +unmodified version of the SEG.PR file, you +
  170. )could (if you had a stock version as the *
  171. (second printer) print it without having -
  172. +your ImageWriter go crazy.  By crazy, I am -
  173. +refering to the case where someone creates ,
  174. *an AWP file as if the Control-B keystroke -
  175. +sequence would, in fact, initiate boldface +
  176. )printing and then sends this AWP file to )
  177. 'someone else who has a modified SEG.PR *
  178. (file.  In this instance, you would find (
  179. &the call for Boldface Begin (actually (
  180. &Escape) immediately prior to a random -
  181. +variety of letters depending entirely upon *
  182. (what the author wanted to be printed in ,
  183. *boldface.  Now, when that file is printed +
  184. )using a modified SEG.PR file, the letter ,
  185. *immediately after the ^ is interpreted as ,
  186. *a printer command.  Even in the best case +
  187. )scenario things would be strange because ,
  188. *that letter would not be printed.  In the *
  189. (worst case, you might find your printer ,
  190. *carrying out a form feed command right in -
  191. +the middle of a paragraph or you might see +
  192. )the type size suddenly go from 10 cpi to &
  193. 17 cpi.  Not fun.  Solutions anyone?
  194.